package io.renren.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author:yuchen
 * @createTime:2021/3/11 10:38
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserProfileBody<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("返回的用户的 UserID")
    @JsonProperty(value = "To_Account")
    @JSONField(name = "To_Account")
    private String To_Account;

    @ApiModelProperty("消息的发送者昵称")
    @JsonProperty(value = "ProfileItem")
    @JSONField(name = "ProfileItem")
    private List<UserProfileItemBody> ProfileItem;

    @ApiModelProperty("MsgBody 为空，该字段为1，撤回的消息，该字段为2")
    @JsonProperty(value = "ResultCode")
    @JSONField(name = "ResultCode")
    private Integer ResultCode;

    @ApiModelProperty("消息内容")
    @JsonProperty(value = "ResultInfo")
    @JSONField(name = "ResultInfo")
    private String ResultInfo;

}